package com.lee.datastructures.linkedlist;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/4/3
 */
public class Node {
    private Node next;
    private String name;

    public Node(Node node, String name) {
        this.name = name;
        this.next = node;
    }

    public void print() {
        System.out.println(this.name);
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }
}
